package com.yunxi.model.otd;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.util.StringUtils;

/**
 * <p>
 * 产能设置
 * </p>
 *
 * @author XUQI
 * @since 2019-09-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "OtdProduceCapacityAssignDTO", description = "车型产能分配DTO")
public class OtdProduceCapacityAssignDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    private String id;

    @ApiModelProperty(value = "车型")
    private String modelCode;

    @ApiModelProperty(value = "配置")
    private String vehicleCode;

    @ApiModelProperty(value = "内饰")
    private String colorInCode;

    @ApiModelProperty(value = "外饰")
    private String colorOutCode;

    @ApiModelProperty(value = "外饰")
    private String country;

    @ApiModelProperty(value = "产品编码")
    private String productCode;

    @ApiModelProperty(value = "选装包")
    private String customPackCode;

    @ApiModelProperty(value = "需求数量")
    private Integer demandNum;

//    @ApiModelProperty(value = "工厂最大产能数量")
//    private Map<String, Integer> capacity;

    @ApiModelProperty(value = "是否有条件限制")
    private Integer isLimit;

    public void setCustomPackCode(String customPackCode) {
        this.customPackCode = StringUtils.isEmpty(customPackCode) ? "" : customPackCode;
    }

    public String getCustomPackCode() {
        return StringUtils.isEmpty(customPackCode) ? null : customPackCode;
    }
}
